package com.chem.lems.constans;

/**
 * @author anjy
 * @DESCRIPTION 响应码枚举
 */
public enum ResultCodeConstant {

    EXIST(100), //已存在
    SUCCESS(200), //成功
    FAIL(400), //失败
    UNAUTHORIZED(401), //未认证（签名错误）
    NOT_FOUND(404), //资源未找到
    INTERNAL_SERVER_ERROR(500); //服务器内部错误

    private final int CODE;

    ResultCodeConstant(int code) {

        this.CODE = code;
    }

    public int code() {
        return CODE;
    }

    public int getReturnCode() {
        return CODE;
    }
}
